Except as provided in paragraph (12) of subdivision (f) of Section 1202.4 of the Penal Code, payment, in whole or in part, of compensation by either the employer or the insurer shall, to the extent thereof, be a bar to recovery against each of them of the amount so paid.