Moved the sequencing of a call to node.reset, since the intervening expression can throw an exception which would leave us with an unexpected NULL pointer.
Moved the sequencing of a call to node.reset, since the intervening expression
can throw an exception which would leave us with an unexpected NULL pointer.

paulbdavis/ledger,duncanmortimer/ledger,afh/ledger,ledger/ledger,paulbdavis/ledger,jwakely/ledger,jwakely/ledger,duncanmortimer/ledger,duncanmortimer/ledger,jwakely/ledger,duncanmortimer/ledger,paulbdavis/ledger,ledger/ledger,jwakely/ledger,ledger/ledger,ledger/ledger,jwakely/ledger,paulbdavis/ledger,afh/ledger,afh/ledger,paulbdavis/ledger,paulbdavis/ledger,duncanmortimer/ledger,duncanmortimer/ledger,duncanmortimer/ledger,jwakely/ledger,paulbdavis/ledger,afh/ledger,ledger/ledger,afh/ledger,jwakely/ledger