streamserver: fix potential segfault on authentication