Fix websocket handler so that a query can change without stopping the whole subscription.