Waveforms.cpp: prevent a segfault in DropTimesOutside

If using ReadFromNRAR, there is no frame data, and so the frame member
is an empty vector. DropTimesOutside tries to erase elements of frame,
which don't exist. We adopt the solution used in SliceOfTimeIndices,
skipping the erase if the frame vector is empty or a single element.