Fix issue with message about document not being found.