Fixed typo in error handling in displayHTMLHeader()