Fix crash issue when DuChain was unlocked to early.
This follows through a846cb4bb7ea774ecff9cb9ca5bffed132d1b180