FREQUENCIES: Avoid buffer overrun when there is no valid data.