message: ModalRoot: add check for modalElement
diff: @@ -287,6 +287,7 @@ class ModalRoot extends Component {
  const activeModal = this.state.activeModal;
  const modalElement = this.pickModal(activeModal);
  + if (modalElement) {
  const modalState = this.modalsState[activeModal];
  const prevModalState = {...modalState};
  @@ -306,6 +307,7 @@ class ModalRoot extends Component {
  this.animatePageHeader(modalState);
  }
  }
  + }
  closeActiveModal () {
  const { prevModal } = this.state;
  