datastore: Avoid incomplete keys to be set as parents.