add missing safe guard in checkbox callback
Merge pull request #7768 from andyque/addDisableStateToControl

add missing safe guard in checkbox callback