Added check for DOM element

This way, if there's some element in localStorage that doesn't
correspond to one of our checkboxes, we won't fail when we try to call
domAttr.set.