[fixed] Don't record scroll position when replacing route

Scroll position should only be recorded for PUSH and POP actions.
There is no point in saving it if the item is replaced in browser history.

(This is mostly a correctness fix)