Bugfix: Check if SMTP credentials are nil

Check if SMTP credentials are nil before passing them to the
SMTPClient, causing it to crash.

https://github.com/cs3org/reva/pull/1006
