Do not emit-form or eval the ast of a form if analyze threw an exception

This makes it easier to determine in the output what caused the
exception during analysis.