convert None to bool before hashing, fixes #227