Fixed null pointer for adding begin blocks to a canvas