Avoid assertion errors in SR plugins.

may break juce example plugin. TODO: check