Replacement for #3940
Fixed a few typos.
FormBuilder::checkbox can't be checked without session

If the value of FormBuilder::session is null, it’s not possible to set
a checkbox to checked.
Fix conflicts.
Fixing conflicts and merge.