Fix crash when tileoffset is nil, and when objects rotation is nil