added NULL-check that caused segfault in dm_hash_table_get