Fix adding media to cart in insert media dialog