Work around Chrome bug

There is a strange bug in Chrome that manifests itself when
you navigate to the page using browser history. In this case,
SVG files loaded using <object> tags stop working properly,
and the same file is loaded into all of them.

This commit adds code to detect this situation and force
a reload if it happens.