bibdocfile: fix for undefined docname in get_text

Signed-off-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>