Fix l-system crash when treedef random_level not set by Lua