fix(waveform): scan_history error check for IndexError
Description
added check for scan_index out of range for Waveform when accessing history scans
Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.
Please migrate repositories to https://gitea.psi.ch - if you need help, contact gitea@psi.ch