datastore: Fix key to proto conversion with parents.