IB/ipath: fix NULL dereference during cleanup