Fix Sparse warnings about using plain integer as NULL pointer