Check whether Catalog from XRef is Dict for each document passed to pdfunite and return error if not. #706