Little fix for generateLevel()

Check if $generator is the default value NULL instead of false
Merge pull request #1451 from wiezz/patch-1

Little fix for generateLevel()