Pion-nucleon resonances and the angular distribution in pion electroproduction