formatter: display record with no record id

* Fixes an issue 'Default_HTML_detailed' template when record does not
  have a 'recid'.

* Handling this issue in the template has a unexpected side-effect
  this commit handles the issue in the back-end.  (PR #2278)

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>