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.
Test checkbox without session.
Merge pull request #4230 from ironkeith/4.1

[4.1] FormBuilder::checkbox can't be checked without session