fixes #5453 Error in console when you try to add two folders with the same name