isl_mat_lin_to_aff: fix error handling