Lane Thomas homered, and Michael Chavis scored on a wild pitch to help the Washington Nationals walk off the Los Angeles Dodgers 7-6.