stationxml: fixed a problem with location code containing blanks
gf: fixed a problem where out-of-bounds was not detected properly