[Bug 56514] New: incorrect activation of forms after closing the last opened one (delphi or lazarus)