function assertNotOpen(msg, dialog) {
  assertFalse(msg + ' [AbstractDialog.isOpen()]', dialog && dialog.isOpen());
}
Asserts that the given dialog is closed.
@param {string} msg Message to be printed in case of failure.
@param {AbstractDialog} dialog Dialog to be tested.