don't fail hard with weirdly structure es results

also fixes an old bug related to getting the form name.
and Case:61331
pr feedback
Merge pull request #364 from dimagi/cz

don't fail hard with weirdly structured es results