More changes to explicit comparison to None.

I found a few more places where the truth value was used in lieu of the explicit comparison to `None` and I've fixed them.