doctor: tweak XQuartz check.

Sometimes (e.g. #27014) it may find an installed version but no prefix.

In this case we still want to tell users if it's outdated.