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.