Fix assertion crash when using SPV clients
Fix assertion crash when using SPV clients (from doge, but in main.h no in core.h)