Fix crash with the forceloading code.

Reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726