Check if etag exists before returning it. fix #273