Make pdfjs default if not set
Null check