LPS-36894 LPS-36894 fix restoral of files which belonged to folders that have been deleted