blob: fixed sanity check

Even if b == NULL sanity check succeeded we still can SEGFAULT in
b->cfg dereference in log message.
blob: fixed possible zero-size allocs