FIRST AMENDMENT AND WAIVER TO AMENDED AND RESTATED CREDIT AGREEMENT Dated as of August 25, 2004