added check in main::encode_hash to make sure value is defined
added check in main::encode_hash to make sure value is defined

Ensembl/ensembl-hive,Ensembl/ensembl-hive,Ensembl/ensembl-hive,Ensembl/ensembl-hive