check form IDs not None to allow for '0'
Merge pull request #164 from dimagi/case_hierarchy

check form IDs not None to allow for '0'