Fix aircraft losing selection outside the map borders

Fixes #5651
Merge pull request #5967 from obrakmann/fix5651

Fix aircraft losing selection outside the map borders