Issue #1394364 by brad.bulger: use DOMPDF_FONT_CACHE when checking if dompdf's fonts folder is writable.