Update modals.coffee

Fix for case when insert form contains data from update form.

How to reproduce:
1 - Open update form, it will have some data in inputs .
2 - Close it.
3 - Without refreshing page open insert form, and it will contains data from update form.

Problem was in Session.get("cmDoc"), i just remove this variable if no doc option set for modal form.