LaTeX reader:  don't assume preamble doesn't contain environments.

Closes #1338.