Fixed check for undefined cumulativeDistance

Testing in IE 10 resulted in a binding error in knockoutjs when
accesssing .toFixed(1) of cumulativeDistance. This error was not
forwarded by chrome...