Fix bcrypt hash error if `encrypted_password` is nil