This corrects all violations of -Wzero-as-null-pointer-constant identified in the Qt codebase.
These changes are extracted from #15112 as suggested by @MarcoFalke to ease review. This is in service of enabling -Wzero-as-null-pointer-constant, which should eliminate this as a concern going forward.
Note there are 2 non-Qt changes: src/test/allocator_tests.cpp and src/wallet/db.cpp.