Fixed crash when using mail plugin, collection as text and password as text.

Solves https://github.com/kaspernj/service_watcher/issues/18