fix 'captured' being set when it should have been 'visited' for link-related messages
fix crash when the selected portal is not in the map data (e.g. while loading), when the highlighter is selected