Fixed special case of checkboxes in that they can have $input === NULL, ...

...see

notes in _form_builder_handle_input_element in form.inc for more info.