deposit: InvalidDepositionType handling

* Handles the InvalidDepositionType exception being raised when
  trying to initialize a deposition type on older submissions which
  is disabled via the DEPOSITION_TYPES config variable.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
Then you don't need it if you use `current_app.logger.exception`.