Fixes a crash when viewing a public directory with private organisations. Closes #12.