Checkbox statuses were lost if an error occurred

Checkboxes lost it's status if an error occurred (e.g. invalid handle) when adding a new page type. Now checkboxes are able to remain checked after an error in validation.