Add quotes since use_cairo can have spaces

BUG #65709
Pass down the recursion param

Fixes heap smashing in 168.pdf.SIGSEGV.598.462