Added checks for incorrect usage of innerHTML. Fixes #1370

Ok, I agree, that's better.  Fixed in version to be posted momentarily.