[#878] Fix inexistent surveys check

* Refactor unused code (survey version Map)
[#878] Check null survey group ids
Merge pull request #879 from akvo/issue/878-deleted-surveys

[#878] Check for non-existent surveys and missing survey group id