#1807 Fix crash if trying to set map content offset to NAN