Don't drop invalid addresses while editing & check that all addresses are valid before send.

BUG: 1542391
add unit tests.
1 file changed