fix self.path property if document from arguments, not exists