If there are image links in the document and if these links contain the image caption then the application throws a very uninformative exception and does not load the document.
Code that fails has been commented out until I have time to come up with a proper fix.