fix checkbox tree input when no checkboxes checked