Correctly check for array members...

...to avoid "Warning: Illegal string offset 'h' in ...\lib\plugins\dw2pdf\mpdf\mpdf.php on line 9131".