Fix NPE when file extension is null