Fix 2 small problems of using undefined hash entries.
Merge pull request #37 from marcmerlin/master

Small fix mentioned on the mailing list a while ago to fix the use of undefined hash entries