Added checks for incorrect usage of innerHTML. Fixes #1370

Looking at the implementation of invariant, I fail to see the performance issue.  The common case does two "if" statements, which shouldn't be measurably less performant than the other if check.  It's slightly slower in the failure case, but since this indicates an error, that should not be hit in production.  We're using invariant everywhere - I'll see what Sebastian thinks tomorrow.