fixes #3110
Merge pull request #3115 from dotCMS/issue-3110-delete-container-by-right-click-gives-error

fixes #3110