isl_mat_extend: accept NULL pointer on zero-size allocation