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