avoid OOM and NPE when calling convert-route-to-track