webdav_server: fix bad assertion