[DS-1489] Back button in Discovery broken in Firefox

This solution will ensure that the search result logging still works, while the bug itself gets fixed.