game.loop: Fix throwing errors inside game loop.