Apparel retailer GapKids has recalled its range of girls' straw cowboy hats after two children sustained minor injuries from the product.