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

An erroneous assertion did not take zero into account.