Fix crash on page with no content