Fixed NULL-pointer dereference when looking for a protocol that is not the first one.
Fixed NULL-pointer dereference when looking for a protocol that is not the first one.

tvanderbruggen/libwebsockets,tvanderbruggen/libwebsockets,davidgaleano/libwebsockets,tvanderbruggen/libwebsockets,davidgaleano/libwebsockets,davidgaleano/libwebsockets,tvanderbruggen/libwebsockets,davidgaleano/libwebsockets,tvanderbruggen/libwebsockets