Fix custom checkbox scoping

Checkboxes inside forms without the 'custom' class are getting customised.