Ensure lexer expects XJS child after nested close

Fixes facebook/react#816.