The pointer is null if the contained data is a nullptr, i.e. the
negating ! was missing from the code. Also, using constData is
imo more explicit here than using operator*.
This fixes various crashes in KMail & friends that relied on isNull.