fix empty and null data cases
Merge pull request #12 from sendwithus/fix-empty-email-data-case

fix empty and null data cases