formatter: sanity check recid is int or long

* When creating a BibFormatObject, if the recid passed is not an int
  or a long, cast it and alert the admin.

* Cherry-picked from d66c87f54413f8c871749e86a0f41c50d2d645d5
  inspirehep/ops/prod.

* Cherry-picked from c614bcc7fe22531b11c68ac29aca73bc6fb73169
  inspirehep/ops/prod.

Co-authored-by: Alessio Deiana <alessio.deiana@cern.ch>
Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>