Fix: optional permissions labels in options page

Bug: twpowertools:86
Change-Id: I5aee5651f72d1eae9f06f18720c65dc0ced9b9e4
diff --git a/src/options/optionsCommon.js b/src/options/optionsCommon.js
index b4bb42a..bd40416 100644
--- a/src/options/optionsCommon.js
+++ b/src/options/optionsCommon.js
@@ -313,7 +313,7 @@
                               .getElementById('optional-permissions-warning')
                               .setAttribute('hidden', '');
                       } else
-                        document.getElementById('blockdrafts').checked = false;
+                        document.getElementById(opt).checked = false;
                     })
                     .catch(err => {
                       console.error(
@@ -321,7 +321,7 @@
                               'permissions were granted after the checkbox ' +
                               'was clicked for feature "' + opt + '":',
                           err);
-                      document.getElementById('blockdrafts').checked = false;
+                      document.getElementById(opt).checked = false;
                     });
             });