Undefined layers variable in plugin FeaturesResult