Check passed 'pathlist' parameter and return an empty list if the 'pathlist' parameter is empty.
Otherwise the python script raises unattended error on empty parameter. The error message looks like:
Traceback (most recent call last): File "<string>", line 22, in <module> IndexError: list index out of range
see more details here http://lab.llvm.org:8011/builders/llvm-clang-win-x-aarch64/builds/9476/steps/build-llvm-project/logs/stdio