Remove `srcset` attribute in case of an error