fix interpretPrintCmdLine for the case where Document class not present