Minor GPU TVL1 optical flow optimization

Avoid diff term calculation if it is not used for epsilon criterion