Despite running fewer stores, Rite Aid grew its sales and narrowed its losses during the fourth quarter and fiscal year 2012, thanks to a boost in its loyalty card program membership, a longer fiscal year and the continuing dispute between Walgreens and Express Scripts.