base: fix for recreation of broken links

* Fixes a crash of `inveniomanage collect` when a link for a static file
  exists but it is broken.

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>