MDL-42386 fix invalid etag comparison

Credit goes to Eloy Lafuente, thanks!