It was just a thought. If you say webp and tiff never reach that point, I'm going to believe you and maybe test it myself some time.
png/gif are unable to reach this point because both leave the loop on line 205 or 207.