Check that the progressCallback is defined before calling it
Merge branch 'callback' of https://github.com/benbro/pdf.js into callback