BibRecDocs: fix for undefined docname in get_text.

When get_text(True) is called and bibdocs does not have doc name, an exception if fired. This is a simple fix.