[#3615227]Fix crash on adding very first file into ~/Templates.