reuse code to check for valid WMF transaction status

Change-Id: I30666898c88f4aa92959426f0d102fedc8fa9496