Fixed issue with dom.composes in full screen and quick reply modes.

This commit contains fixes for dom.composes() method for composes that are opened in full-screen or quick reply modes.