fix issue #4980

This change solves the above issue.

I had to take the code from KmlRenderer::getGeomParentNode(), breaking the locality of the attribute GeomNode.
I'd say, that the method is not really clear in it's intention, since the method name suggests, that the parent is returned, bit code returns the child, so this was the best I was able to achieve without major changes.