The api test would fail in the no cpu component case.
The api test would fail in the no cpu component case.

Fix it to properly check for errors before attempting to run high-level PAPI
tests.

pyrovski/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi