isl_scheduler.c: update_edge: improve error handling