Bug 1016039 - Fix switching between tab groups when cursor is on a tab. r=dao