Adding hacks to pomio sampling code to cope with 0 sample cases