I am using Ext JS 2.2 and when you are setting Ext JS checkbox.setValue(something) before the checkbox is fully rendered you will get an “this.wrap is undefined” error.
The problem and fix is documented here. For a workaround with out changing any code, just make sure that you set the value of the checkbox in the Ext.onReady() portion and you should be ok.