create course gorups properly on course import

STUD-1595
@waheedahmed @symbolist @adampalay 
Fix course staff user get error on course import.