drivers/crypto/nx: prevent oops on module exit

Check old_devdata->dev in nx-842 driver before accessing it, as
on systems without any nx-842 hardware, the ->dev will never be
set.  Currently, the module will cause an oops while trying to
dereference the dev since it's null.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>