BibDocFile: fix version in register_download()

* Fixes exception raised when the file version passed to
  register_download() is not an integer (this can happen when
  the URL of the file does not explicitly contain the version
  number). (closes #1532)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>