Fix NPE when no way nodes are found