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