Bugfix line (516).
'selectedFeature.getAttribute(attributeName)' throws an Exception if the attribute doesn't exist. So it nether returns null and check fails. Instead use 'selectedFeature.getFeatureSchema.hasAttribute(attributeName)' to check if an attribute exist.
Authored by: wellgis 2017-01-31
Parent: [r853]
Child: [r855]