declare txn id outside try except block
Merge pull request #1652 from AppScale/fix-groomer2

declare txn id outside try except block