Fixing a bug happening when a user impersonating a role from a workspace removed the workspace.
Merge remote-tracking branch 'upstream/master'
Merge pull request #193 from ngodfraind/master

Fix an impersonation bug.