pd: Remove infs and nans from output of a pd instrument.