Fixing a bug happening when the last permissions of a role on a resource was removed.
Merge branch 'master' of https://github.com/claroline/CoreBundle