Bug in PDF generation of built-in theme

I was able to reproduce @Abeiku’s error, @lubos. But it only seems to occur for the built-in green theme, not red, blue, or old style.