[#52756531] Guard against null pointer exception when file mask or path does not match anything.