NEW YORK — The worst week for the stock market in two months ended with a whimper in thin trading Friday. The Dow Jones industrial average lost 4.8 percent this week, while the broader Standard & Poor’s 500 index fell 4.7 percent. Both had their worst weeks since Sept. 23. Major indexes wavered throughout Friday’s session, which was shortened because it’s the day after Thanksgiving.