isl_name_alloc: fix error handling