Fix regression introduced by ProtocolRegistry refactoring