Conformational inactivation induces immunogenicity of the receptor-binding pocket of a bacterial adhesin