Fix wait-loop for pending trans (bug 1011338)

Regression from bug 987841