LPS-36313 fix wrong classname
LPS-36313 avoid nullpointer exception - this only makes sense for web content (not for default values)