Check the hash table is not null before we remove it
Merge pull request #7 from ATL-NZ/fix_db_delete_check

Check the hash table is not null before we remove it