Prevent agents from removing their own agent permissions. Fixes #126.