merge stable 2687:2688 pdfdoc.py: attempt to robustify escape attribute access
merge stable 2687:2688 pdfdoc.py: attempt to robustify escape attribute access

Distrotech/reportlab,kanarelo/reportlab,kanarelo/reportlab,Distrotech/reportlab,Distrotech/reportlab,Distrotech/reportlab,kanarelo/reportlab,Distrotech/reportlab,kanarelo/reportlab,kanarelo/reportlab