fix the bug of not dealing with empty Subject in save mails to db