There are various ways to deal with this problem. Many climbers carry disposable toilet bags or bottles or funnels.