Only append next node when last has not changed.
Only append next node when last has not changed.

Because the nextNode call is asynchronous the last node
in the trajectory may change before it returns. In this
case the next node is not next anymore and should not
be appended to the state.

mapillary/mapillary-js,mapillary/mapillary-js