a task event (i.e. a CommentEntity) is generated with action set to Event.ACTION_ADD_GROUP_LINK.
There is a check missing inside org.activiti.engine.impl.cmd.AddIdentityLinkCmd that handles the case mentioned above correctly.
Maybe it is not intended to set the assignee of a task to null using this method, but it is not prohibited either.
There is a workaround: