Fixed edit group functionality

Groups were unable to update with empty members list - array present.
Added check and empty array in else case