Improving error message on an attempt to open a malformed URL in Firefox. Fixes issue 2811