fix the bug with loadXmlFromUri when it returns null because it does not understand what file type file is