In a headless workspace, blocks are just Blockly.Block, not Blockly.BlockSvg. You can tell whether a block is a Blockly.BlockSvg with `block.rendered`.