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).

Change-Id: Icdab3909476a772817b6c0315cffbf2e15826167