Fixed masternode payment check for out-of-order blocks