Fix issue with looping LaTeX-processes on some input.
Merge branch 'hotfix/1.3.4'