isl_ast_expr_free: improve error handling