Re #8501. Fix CMake error if string variables are empty.
Merge remote-tracking branch 'origin/feature/8501_cmake_error_if_lsb_release_missing'