ws: Don't assert when serving a zero length resource
ws: Don't assert when serving a zero length resource

An erroneous assertion did not take zero into account.

Closes #1249
Reviewed-by: Marius Vollmer <bb11c6e942c5cc765df5f04da146b3198127a7a3@redhat.com>

firebitsbr/cockpit,xhad/cockpit,xhad/cockpit,dperpeet/cockpit,larskarlitski/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,nmav/cockpit,petervo/cockpit,larsu/cockpit,stefwalter/cockpit,cockpit-project/cockpit,martinpitt/cockpit,cockpit-project/cockpit,matobet/cockpit,vbatts/cockpit,xhad/cockpit,petervo/cockpit,deryni/cockpit,deryni/cockpit,larsu/cockpit,deryni/cockpit,nmav/cockpit,evol262/cockpit,cockpituous/cockpit,fridex/cockpit,zigitax/cockpit,sgallagher/cockpit,Armstrong1992/cockpit,deryni/cockpit,denysvitali/cockpit,denysvitali/cockpit,FireDrunk/cockpit,andreasn/cockpit,cockpituous/cockpit,moolitayer/cockpit,evol262/cockpit,xhad/cockpit,netzvieh/cockpit,petervo/cockpit,netzvieh/cockpit,fridex/cockpit,jscotka/cockpit,Scribery/cockpit,martinpitt/cockpit,cockpituous/cockpit,cockpituous/cockpit,vanloswang/cockpit,kkaempf/cockpit,firebitsbr/cockpit,netzvieh/cockpit,stefwalter/cockpit,harishanand95/cockpit,larskarlitski/cockpit,zigitax/cockpit,moolitayer/cockpit,fridex/cockpit,fridex/cockpit,matobet/cockpit,sgallagher/cockpit,stefwalter/cockpit,jscotka/cockpit,vbatts/cockpit,michalskrivanek/cockpit,petervo/cockpit,michalskrivanek/cockpit,deryni/cockpit,stefwalter/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,FireDrunk/cockpit,harishanand95/cockpit,Thermionix/cockpit,evol262/cockpit,Armstrong1992/cockpit,mvollmer/cockpit,denysvitali/cockpit,netzvieh/cockpit,Armstrong1992/cockpit,kkaempf/cockpit,mvollmer/cockpit,haiyangd/cockpit_view,mvollmer/cockpit,moraleslazaro/cockpit,evol262/cockpit,firebitsbr/cockpit,mareklibra/cockpit,jscotka/cockpit,moolitayer/cockpit,cockpit-project/cockpit,sgallagher/cockpit,mareklibra/cockpit,mvollmer/cockpit,darioajr/cockpit,dperpeet/cockpit,cockpituous/cockpit,vanloswang/cockpit,fridex/cockpit,jscotka/cockpit,sub-mod/cockpit,Armstrong1992/cockpit,sgallagher/cockpit,xhad/cockpit,arilivigni/cockpit,garrett/cockpit,cockpit-project/cockpit,vbatts/cockpit,andreasn/cockpit,vanloswang/cockpit,Thermionix/cockpit,garrett/cockpit,petervo/cockpit,dperpeet/cockpit,larsu/cockpit,sgallagher/cockpit,larskarlitski/cockpit,moraleslazaro/cockpit,larsu/cockpit,haiyangd/cockpit_view,netzvieh/cockpit,maxamillion/cockpit,FireDrunk/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,garrett/cockpit,larskarlitski/cockpit,garrett/cockpit,nmav/cockpit,dperpeet/cockpit,stefwalter/cockpit,denysvitali/cockpit,darioajr/cockpit,larskarlitski/cockpit,sgallagher/cockpit,SotolitoLabs/cockpit,Thermionix/cockpit,kkaempf/cockpit,dperpeet/cockpit,dperpeet/cockpit,jscotka/cockpit,nmav/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,moolitayer/cockpit,larskarlitski/cockpit,sub-mod/cockpit,harishanand95/cockpit,vbatts/cockpit,larsu/cockpit,netzvieh/cockpit,andreasn/cockpit,darioajr/cockpit,michalskrivanek/cockpit,vanloswang/cockpit,Scribery/cockpit,evol262/cockpit,andreasn/cockpit,harishanand95/cockpit,arilivigni/cockpit,Scribery/cockpit,maxamillion/cockpit,harishanand95/cockpit,evol262/cockpit,Scribery/cockpit,moraleslazaro/cockpit,michalskrivanek/cockpit,zigitax/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,matobet/cockpit,Thermionix/cockpit,zigitax/cockpit,harishanand95/cockpit,arilivigni/cockpit,xhad/cockpit,larsu/cockpit,xhad/cockpit,Armstrong1992/cockpit,arilivigni/cockpit,zigitax/cockpit,arilivigni/cockpit,sgallagher/cockpit,haiyangd/cockpit_view,mareklibra/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,cockpituous/cockpit,arilivigni/cockpit,firebitsbr/cockpit,Thermionix/cockpit,martinpitt/cockpit,sub-mod/cockpit,sub-mod/cockpit,haiyangd/cockpit_view,moraleslazaro/cockpit,garrett/cockpit,deryni/cockpit,maxamillion/cockpit,nmav/cockpit,martinpitt/cockpit,haiyangd/cockpit_view,matobet/cockpit,fridex/cockpit,martinpitt/cockpit,matobet/cockpit,kkaempf/cockpit,maxamillion/cockpit,SotolitoLabs/cockpit,Thermionix/cockpit,sub-mod/cockpit,arilivigni/cockpit,vanloswang/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,kkaempf/cockpit,moolitayer/cockpit,cockpit-project/cockpit,Scribery/cockpit,deryni/cockpit,Scribery/cockpit,darioajr/cockpit,jscotka/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,FireDrunk/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,darioajr/cockpit,moraleslazaro/cockpit,andreasn/cockpit,FireDrunk/cockpit,andreasn/cockpit,petervo/cockpit,maxamillion/cockpit,SotolitoLabs/cockpit,firebitsbr/cockpit,vanloswang/cockpit,andreasn/cockpit,vbatts/cockpit,matobet/cockpit,petervo/cockpit,stefwalter/cockpit,vbatts/cockpit,denysvitali/cockpit