Fixed issue in CloseOnClickOutside event binding to not close the dialog, if the clicked element is removed before this event triggers.
Fixed issue in CloseOnClickOutside event binding to not close the dialog, if the clicked element is removed before this event triggers.

djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test