PropertiesAdapter: Do not retain instance of the Legend dialog in memory