Fixes twig extension when called on an empty media field