set projectId to null

please review these changes, they fix issues with   project.parentId and job.projectId when they are set to null.