the code in https://gerrit.wikimedia.org/g/mediawiki/extensions/CirrusSearch/ /b711aa5901ec4226b8f7b977b9b23469b9c1b17b/resources/ext.cirrus.serp.js#12 fails to take into account that Uri creation may throw an exception.
This is leading to a high amount of logstash spam that is not easy to reliably filter out