clone window: add checks for existing pages on panels

When cloning a window from a tab, a critical error is triggered
if we don't have side and/or bottom panel.

https://bugzilla.gnome.org/show_bug.cgi?id=725910