I don't think it's necessary to assume that everyone reappeared where they were left. If the Infinity Stones grant the ability to wish the universe into a particular state of being, it's just as easy to wish "Bring everyone who was dusted back to a safe place" as it is to wish "Bring everyone who was dusted back." If we assume that Hulk wished the former, that gets Strange & Co back to Wakanda or at least Earth, and also solves the problem of people who were dusted in airplanes or on boats or in cars from reappearing and instantly falling to their death/drowning/being run over on the interstate. Smart Hulk has brains as well as brawn, so surely he would have thought of that since he had plenty of time to contemplate what he would do when he snapped.