fix($location): re-assign history after BFCache back on Android browser

Closes #5425