Fix crash when attempting to open an empty file

The crash actually happens in CMXMLDocument.m, because it's not checking if the result of xmlGetLastError() is NULL, but if CMXMLDocument only works with non-empty strings, then it shouldn't get passed an empty string.