ModifyFeature: Two consecutive events "before/afterfeaturemodified"

Try:

 * draw a polygon.
 * select it to modify
 * drag the map started the drag from inside the polygon, oops! two "beforefeaturemodified"
 * click outside the polygon to unselect, oops! two "afterfeaturemodified"