[PATCH 3/9] dwrite/tests: Do not segfault in tests if NULL is returned.