Fix error in navigation distance calculation when elapsed time is 0

Refs #2108