Adding schema.pre('remove' hook to not delete items with children.