find_package: Fix assertion failure on empty sysroots

Previously we crashed if at least one root variable was set to empty and
at least one to non-empty.

Fixes: #26538
3 files changed