Reject orphaned > and } in XJSText

Stricter parsing to prevent mistakes from throwing very unintuitive errors, fixes #34 and facebook/react#353.

Test plan: `npm test`
I thought about changing this to say just `>` (it's easy) as one would expect it to say, but I imagine this is actually highlights the mistake more clearly and may be preferable.