Fixed feature group losing popup on removelayer.

A feature group no longer loses its popup when a layer is removed from it