Snapshot: make click event work for phantomJS

Fix for https://github.com/geoadmin/mf-chsdi3/issues/726

See comment in code for what this PR addresses. Important for SEO.