I know you could only do so much to prepare for a trip without the facilities, but I'd try to hydrate myself earlier by drinking plenty of water, and having enough time to relieve myself before getting on the bus, hopefully.
That's what I try to do in some work situations where there isn't a toilet on site, but you have to start early enough so you can use the washrooms enough before going to the remote sites.
http://this-twisted-history.blogspot.com/