[Lib] Strengthen response check in network.on_notify_header
[Lib] Strengthen response check in network.on_notify_header

It's possible for the server to send a garbage reply confusing the
callback.  Made the callback more resilient to this situation.

fyookball/electrum,fyookball/electrum,fyookball/electrum