web: Correctly check client channel for validity.

It might also be null.

Reviewed-by: Stef Walter <stefw@redhat.com>