Fix Collection form

when create new collection, "onClose" crash because of a previous JS
error with "digest" node