SiPM-based veto detector for the pion beam at FOPI