Fixed null pointer exception when there was no modules for a student