Found a bug in the handling of gmlIDs.

Simple little bug, big potential impact.