Removing TapGestureRecognized when the master pane is not visible.

This prevents interference with other gesture recognizers that may be
present in the detail view.