JS-199 ThML custom handler fix
Thanks to Martin Denham.
On older parsers qname is empty. This fix allows for this.