Thanks for sharing notes with us.The others might consider customizing default Firefox this way, not messing with opening it in any template.
Setting non-existing search engine as the default in Firefox can be found in the last post is in the topic from my quote and it’s basically the same you pointed to.