be a bit more thorough in checking for the existence of a project
Merge pull request #517 from dimagi/cz-dev

be a bit more thorough in checking for the existence of a project