Fix assertion

- Accidently dropped the "!" in the last commit
- Changed to an is_null() check per @bshaffer