fix(waveform): avoid crash when minified