Ugly minetest.after hack to prevent crashes