fixing null pointer in legend for imported features (MPL)