Fix PasswordType

This commit fixes an error when hex_md5 and other schemes that does not
have max_salt_size. This kind of schemes are needed to migrate from very
old and stupid databases.