[TIMODOPEN-265] Checking if error is nil in handleTransaction to avoid c...

...rash