cris: fix potential NULL-pointer dereference