xtensa: fix potential NULL-pointer dereference