I've always been under the impression that if it isn't the batter that makes the third out, if a run crosses the plate before the out, it counts. So, someone getting doubled off a base, similar to someone doing a double play in reverse (where the throw goes to first base first, then to second to tag the runner), any runs that score in the mean time should count.