[Extensions UI Mac] Fix a bug with popped out actions' highlighted state

Fix a bug where popped out actions wouldn't clear their highlighted
state and add a couple of tests to protect against regression.

BUG=601249

Review URL: https://codereview.chromium.org/1888133002

Cr-Commit-Position: refs/heads/master@{#387389}