check if $config_hash really is a hash before trying to use it

Change-Id: Idf248a4788c626d5f9cbce56ea9b8d34cc8ca230