comedi: ni_usb6501: fix NULL-deref in command paths