Fix null pointer when evaluating long xpaths

Fix potential null pointer when evaluating long xpaths pointing to gml objects. This also fixes the problem of INSPIRE addresses not being painted with recent versions.