cryptodev: fix crash on null dereference