Fix reverse traversal turn cost bug

I've fixed the bug that caused ridiculously long waiting times, as discussed on otp-dev.