Crash fix

Fixed a crash when the cursor is empty and the user is trying to see the
location on the map