Add nTransactionsUpdated checking in proof-of-stake miner

This should help against orphans.