Fix contact formating when line contains multiple or invalid emails