[JENKINS-51584] Actions from a TransientActionFactory should not be persisted (cherry picked from commit d4737b2b)