ntb: fix possible NULL dereference