Sometimes I got an error about gradeLevels being null, so this is just a small bugfix for that.