[UR] Fix platform search logic (#18033)
Change #17876 introduced a regression due to how platforms were
generated
examples and tests. This fixes those issues.
A fix for the no_platforms test is also included; which was failing due
to `UR_ADAPTERS_FORCE_LOAD=""` being treated as absent.
Closes #18032