fixed 43616-64: popups removed on layer change
n50 layers: check if feature has a popup before remove