Avoid changing path when removing a pocket if not in the pocket tab.