fix rare fatal error

In one of the PDF I have parsed, the script exited with this message:
Fatal error: Call to undefined method Smalot\PdfParser\Element\ElementMissing::has() in ...