FOURTH WAIVER AND THIRD AMENDMENT TO AMENDED AND RESTATED CREDIT AGREEMENT