Fixed issue with handling ways without nodes.