ipc: fix null dereference
v0.31.1

Signed-off-by: Fedor Indutny <fedor@indutny.com>