fix(modal): correctly close modals with no backdrop

backdropDomEl was not initialised if only modal without backdrop was opened.

Closes #974
Closes #979