Fix for HTTPS warnings.

When a CMS block got cached on a HTTP page and was shown on a HTTPS page, it caused warnings because there were HTTP images in the HTML.
Thanks @freakphp for investigating and creating this fix.