BibRecDocs: fix for undefined docname in get_text.