better handling of null distribution sampling for linear time mmd

needed for a nice example!