[Firefox] TypeError: svg is undefined TileLayer.GeoJSON.js:123

SVG root element is apparently not correctly created in Firefox.
Add preventive check and then create element if missing.
You're right, much cleaner :-)
Will do but I'm currently away so you'll have to wait midweek if you don't mind.