templates: safer display of imprint

* Safer display of imprint that may be missing in some collections.
  Fixes traceback when displaying "CMS External Resources".

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>