Fixed HasEmptyInputTail to not include augmented production.