Fixed exception message when id of a document could not be found.