zdb: follow-up to r326150, check if malloc succeeded
Reported by: rpokala MFC after: 1 week X-MFC with: r326150