The trail sop is attempting to compute the velocity by comparing the current frame with the previous frame. On frame one, it tries to load frame zero, so it fails. The simplest way to fix this is to put a switch between the final SOP and the trail. Wire the trail in input 0 and the clean1 into input 1. Then put “$F < 1” in the switch parm, (meaning, "choose input 1 (the second input without the trail sop) if the frame number is less than 1).
Sean Lewkiw CG Supervisor Machine FX - Cinesite MTL