Handle errors and wrong test meta-data when using --test-item. Fixes #52614 Signed-off-by: Anas Nashif <anas.nashif@intel.com>