South Africa were the victims of a controversial umpiring decision during their Under-19 Cricket World Cup win over Windies.