Filter the ruptures according to the maximum_distance criterium

See https://bugs.launchpad.net/oq-engine/+bug/1178571