Provide an error message on malformed lets. Fixes #807.