Fix EZP-21124: Checkbox custom attributes on custom tags are not stored

Custom backport of ezpublish-legacy 5.x 38d83f775b930d14d426d7dc01c0dc2d7fae0d0a