[windowManager.js] TypeError: window is null on shell restart
When restarting shell using Alt+F2 and r, the opened windows are killed and I get the message below in logs.
Apr 12 00:56:24 jonvostro gnome-shell[35032]: JS ERROR: TypeError: window is null
_destroyWindow@resource:///org/gnome/shell/ui/windowManager.js:1543:9
_initializeUI/<@resource:///org/gnome/shell/ui/main.js:250:16
Apr 12 00:56:24 jonvostro gnome-shell[35032]: == Stack trace for context 0x55d36e956180 ==
Apr 12 00:56:24 jonvostro gnome-shell[35032]: #0 55d370a194f8 i resource:///org/gnome/shell/ui/windowManager.js:1542 (27bdfb62a740 @ 23)
Apr 12 00:56:24 jonvostro gnome-shell[35032]: #1 7fff5ac0a270 b self-hosted:1175 (dbb68cb0a10 @ 454)
Apr 12 00:56:24 jonvostro gnome-shell[35032]: #2 55d370a19478 i resource:///org/gnome/shell/ui/main.js:250 (dbb68cef150 @ 12)