deposit: ckeditor sanity check

* Avoid error if deposit form is not using ckeditor in any field.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: for loop rewrite to $.each

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Reported-by: Yoan Blanc <yoan.blanc@cern.ch>