Fix null pointer dereference
Fix null pointer dereference

Although there are fewer chances that chain_plugin is invalid, still it's safer to assert it.
EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos