Don't blow up on bad parent type errors
Merge pull request #2390 from dimagi/parent_type_error

Don't blow up on bad parent type errors