Fix warning about macro expansion
As stated by the clang compiler, when the macro is expanded the not operator is applied only to the left side of the comparison.
Changed comparison with a more intelligible nullptr
Differential revision: https://phabricator.kde.org/D23938