This is an error. User role has pre-defined set of permissions, but definitely not zero.
@Dmitriy looks like a bug