Added checks for incorrect usage of innerHTML. Fixes #1370

Does anyone try to do this? I've never heard of anyone trying to…