Fix possible segfault (#3365)
Fix possible segfault (#3365)

When CheckActiveState is called very early, there might be no chain yet.
thelazier/dash,thelazier/dash,UdjinM6/dash,thelazier/dash,dashpay/dash,UdjinM6/dash,dashpay/dash,thelazier/dash,UdjinM6/dash,thelazier/dash,UdjinM6/dash,dashpay/dash,dashpay/dash,UdjinM6/dash,dashpay/dash