HTML window dispatch handler now checks some arguments

Using the HTML control in a fairly standard manner, I was seeing occasional (maybe 1 in 30 times) crashes on Windows 8 related to DISPID_STATUSTEXTCHANGE notifications in a non-Unicode application.  Adding some small checks to the dispatch_Invoke function seems to correct the issue.