cpp: xerces: Throw exception on EntityResolver failure