[PATCH V3 1/4] selftests/sgx: Fix NULL-pointer-dereference upon early test failure