Handling 0-length waveform case in the waveform viewer. --kazu