wait should return if file/directory gets deleted before reaching the version

say you did "GET /file?wait=100" but /file gets deleted before reaching version 100. in this case we should return 404. this is consistent with GET /file?wait=100 returning 404 if /file doesn't exist.