isl_ctx_next_operation: handle NULL input