The reason behind this issue is _:ub0038814 is treated as a blank node and the node cannot be identified with _:ub0038814 once the mutation has been performed.
There are 2 ways to update:
Performing another mutation to update the predicate of the node. To do this you will have to know the uid of the node to update.
Reference: https://dgraph.io/docs/mutations/blank-nodes/