I guess it should be $block instead of $event->getBlock()