https://logstash.wikimedia.org/goto/1567c2583e8688288ad17e856d378116
Stack traces involve setupEditLinks() and onEditSectionLinkClick().
These errors shouldn't be possible, we should add detailed error logging to see what values it's trying to construct URLs with.