That's why there is absolutely no point in not carrying something to pee into. Really really simple.
Poo is something else.... I would make it very clear to passengers that they have to be sorted before we depart. In general, short of having eaten something dreadful shortly before, or having just had a barium enema done, this isn't a problem