Fixed a NullReferenceException when dragging and releasing outside of the bounds of the map.