Prevent empty grammar.

Two common cases: the stream is empty or the stream has not been
rewinded.

Thanks @stephpy for reporting the issue!
[auto] Merge from Compiler

    • #a34a3ed — Prevent empty grammar. (Ivan Enderlin, 2013-06-04)

---

Merge remote branch 'library-compiler/master'