ni_670x: Fix possible invalid pointer dereference in ni_670x_detach()