Replaced undefined $page_content variable with $this->getSession()->getPage()->getHtml() method call.