SONAR-3755 fix NPE when file does not exist anymore