ECMS-6349: IllegalArgumentException when restoring file containing index

Problem analysis
- Cannot find the trash file when deleting a content with index
- When finding deleted content by a name without index, all contents with same name(including index) are returned

Fix description
- Correct the undo link when deleting a content with index
- Correct query to get right content from trash