Flux trapping energies in YBCO in the presence of a transport current