#12783 img tag referencing non existent scales leads to transform error