null-safety for setting parents

add parents only if parentId is not null, which will result in the file being in the root collection ('My Drive')