Throw exception if password hasher does not extend AbstractPasswordHasher