Fix check for enabled for community/residents

Fix redirects etc. when a community exists or not.