Set onerror instead of checking type == 'gif'.
Set onerror instead of checking type == 'gif'.

GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp