Make SvgCanvas raise exception on error.