STS-3722: fixed NPE while scanning for config files in case the file has no file extension