[api] Fixed an issue when a blank login parameter was paassed to Group.list