Avoid a seg fault by checking that there are sub-pulses