[PATCH 5.17 0216/1126] selftests/sgx: Fix NULL-pointer-dereference upon early test failure