fixes Blockly.inject call inside initReadonly method