- Updated event subscriber preRemove() method so it properly removes
the tree path when the database platform doesn't support foreign key
constraints.
- Updated tests.