US retailer Safeway Inc has recorded an increase in first-quarter earnings, despite a dip in sales.