Handle the failure of compilation better, so we don't find out because of a ClassCastException on a TypeElement.
fix some line formatting.
Merge pull request #258 from cgruber/handlecompilationfailure

Don't throw ClassCastException on certain compile errors.