Fix a 500 error when attempting to preview an empty HTML file.