Check for Null courses in get_courses in case of outdated mapping file.