minor null checks
Merge branch 'biodiv_usergroups' of github.com:strandls/biodiv into biodiv_usergroups