BibDocFile: complete 3004c20 AFS fix

* This commit complements 3004c20 patch to also check if AFS
  PATTERN is not empty.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>