Prevent NullPointerExcpetion if files are delete on filesystem