Catch networkstatus_get_stored_consensus errors

Also, don't leak memory.
Also catch networkstatus_store_consensus errors