Fix the HttpException not being rendered correctly for different themes