Fix map screen crash on rotation while connected

Fixed issue #434