Fix null pointer exception in scheduler (set student availability)