Reorder initialization of member variables to make GCC happy
Add checks for nil in minetest.after