Warning/error count fix

Currently if a block has an error and/or a warning and is moved to the trash, the warning and/or error counts do not update to reflect the new state of the blockly editor. This patch fixes that bug.