Fix crash updating gametype without game

Fixes https://github.com/minetest/minetest/issues/955