Fix extension enable/disable toggle.

Fix a regression introduced in 31d8d2ce17c7909b10610f8415a5a40597b5e61e.