what it pendingTransaction is empty? head would trhow an error (which, AFAIK, is what you're expecting 99% of the time I'm making comments like that)