Fixed browser action popup not closing on authentication.

Also removed `console.error` calls as they seem to break Kitt.