AMENDMENT NO. 1 TO THIRD AMENDED AND RESTATED NOTE PURCHASE AND SHELF AGREEMENT