Fixed error thrown when element missing name

Fixed error getting thrown when checkable element doesn't have name.