libpayload: style: compare null-pointers with NULL, not 0