Added checks for incorrect usage of innerHTML. Fixes #1370

This should be a warning, not an invariant. There's no reason to stop execution flow.