Fix MediaBlockService

replace $this->getTemplate()
by $blockContext->getTemplate()