Skip history#replaceState if not available

For example, in IE9.

Change-Id: Ib1b29923dfb3aa8fee6c3890738f88b1552dce5b
Merge "Skip history#replaceState if not available"