Use proper SQLAlchemy null test