Kmart has taken swift action after coming under fire for selling children's wedding dress costumes.