Fix opening of the Dock.

With the previous check, grabGestures() was not called when the last window was removed because the scene was not empty (tileRects are still there).