Fix exception that broke page rendering when a post error occurred.