SAK-25668 deal with folder delete and restore

git-svn-id: https://source.sakaiproject.org/svn/content/branches/SAK-25668@306997 66ffb92e-73f9-0310-93c1-f5514f145a0a
SAK-25668 reset the state attribute of list item selection after removing items to trash

git-svn-id: https://source.sakaiproject.org/svn/content/branches/SAK-25668@307002 66ffb92e-73f9-0310-93c1-f5514f145a0a