avoid crash on null xmlHandler

git-svn-id: https://languagetool.svn.sourceforge.net/svnroot/languagetool/trunk/languagetool@9862 2fe6a88b-1217-0410-b804-ba6ed01314b8