Fix method name typo.
Test for truthiness before merging the credential hashes.

ssh_pass_hash and ssh_key_hash are sometimes set to false, which can't
be automatically converted to a hash. Ensure they're truthy before
attemping to merge them.