* magit.el (magit-buffer-switch): Keep fixing Issue #825, check if
  window is visible before poping to magit buffer.