CRAFTERCMS-857
Fixed stack overflow exception caused by circular dependencies on delete
Merge pull request #247 from dejan-brkic/2.3.x

CRAFTERCMS-857