Fix error when there is no title in the page.