The whole "primitive African tribe," and some members of the tribe trying to sexually assault you is a racist cliché.
The Himba are a real people living in modern day Africa, check them out, they're fascinating.
The motel break-in attempt isn't by members of the tribe (who live a long drive north of the hotel), but by different locals. It's based on a real event that happened to a friend of mine when she was staying alone in a motel in Uganda.