convert None to bool before hashing, fixes #227

Instead of replacing `None` with `False`, converting None to False may not break things immediately.