Make sure the password is actually set before trying to hash it (fixes #67)

Fixes issue #67.