If the inital state is always the same, initialize the shift register with it as Dan indicated above.
If you don't want to write in the first loop iteration no matter what, you can also use some additional boolean logic, e.g.:
If ("value changed" .AND. "[n]!=0") -> send data ([n] is the loop iteration terminal).