Fix #1159 - Added a workaround for replaceState url bug in Chrome/Webkit

In Chrome and Webkit browser there is currently a bug where an incorrect history state is pushed onto the stack if a null is sent into replaceState for URL (3rd parameter) and there is a base href tag on the page. This pull request fixes issue #1159.