doctrine of waiver — Legal Definition, Examples & Cases