protect against nil permissions
Merge pull request #423 from continuuity/feature/handle-no-permissions

protect against nil permissions