core: prevent image-url checksum if only mediaclass defined.
This fixes a problem where a checksum was generated if an undefined width/height was specified, typically in a {% media %}