Ititalized memory for polygon vector. This fixes a segfault in QT waveforms.
Only render waveforms if waveform with is valid.