Make JsonLdCallback document optional, it's not passed if an error occurs