Add operator== and operator!= to compare with nullptr.