jstim: fix nasty bug where samples were getting skipped at start of stimulus