Bugfix for a nullpointer in creative mode