Check that hash exists before getting its value. Fixes #211