Fix JS error in mostly-dead Opera compat code

We totally forgot to bind it, and didn't notice because
it never runs except when you tab out of a dialog
in Chrome.

Change-Id: Iaa8b29deb7f7e7e7d6c521ce2a12a48dd0d14041
Merge "Fix JS error in mostly-dead Opera compat code"