webtalk: make initialisation more robust

dont rely on the number of fields in struct libwebsockets_protocols,
which changes with the libwebsockets API on and off