fixed exceptions if routing in 3D mode
use ele tag, not attribute; refactoring to OSMElements; improved pbf handling if error