Disable svg generate in layout preview mode because the svg lib can't
handle it.