Add guard for gettting text from an element.
Fixed search for metadata containing extent.
Merge branch 'geocat_2.2.x' into inspire-editor