Make sure that all of the page content is filled out completely. For example, if you have added a list block to the page but have not selected a list, it will throw this error when trying to view the style.