doctrine of deviation — Legal Definition, Examples & Cases