Hotfix of the crash on CMasternode::CalculateScore: assertion `chainActive.Height() >= GetInputHeight(vin) + MASTERNODE_MIN_CONFIRMATIONS' failed.

Patch. v0.12.5.1

Hotfix of the crash on CMasternode::CalculateScore: assertion `chainActive.Height() >= GetInputHeight(vin) + MASTERNODE_MIN_CONFIRMATIONS' failed.