Protect lastWaypoint.latitude from null call