Fixed potential NPE during transaction upload