Add missing null checks in wallet/crypto_tests.cpp
Add missing null checks in wallet/crypto_tests.cpp

Align code with Bitcoin

nmarley/dash,UdjinM6/dash,biblepay/biblepay,UdjinM6/dash,biblepay/biblepay,ivansib/sibcoin,dashpay/dash,ivansib/sibcoin,thelazier/dash,dashpay/dash,nmarley/dash,nmarley/dash,UdjinM6/dash,nmarley/dash,ivansib/sibcoin,biblepay/biblepay,biblepay/biblepay,dashpay/dash,thelazier/dash,nmarley/dash,biblepay/biblepay,ionomy/ion,UdjinM6/dash,crowning-/dash,ionomy/ion,dashpay/dash,biblepay/biblepay,UdjinM6/dash,biblepay/biblepay,ionomy/ion,thelazier/dash,biblepay/biblepay,nmarley/dash,ivansib/sibcoin,crowning-/dash,crowning-/dash,nmarley/dash,ionomy/ion,crowning-/dash,thelazier/dash,crowning-/dash,ionomy/ion,crowning-/dash,dashpay/dash,thelazier/dash,ionomy/ion,ivansib/sibcoin,ivansib/sibcoin