Throw exception is password hasher does not extend AbstractPasswordHasher