Remove any empty coordinates from the result in DirectionParser.