Throw sane error if one of security groups is null