Fix issue with label=false.

Only return the input for checkbox type inputs as they are normally nested in the label.

Fixes #4991