Add sanity checks in OGR_SRSNode::importFromWkt() (#5193)

git-svn-id: https://svn.osgeo.org/gdal/trunk@26288 f0d54148-0727-0410-94bb-9a71ac55c965