Catch AttributeError and don't patch modules that lack __name__.
Fixes #832.


git-svn-id: https://svn.calendarserver.org/repository/calendarserver@12414 e27351fd-9f3e-4f54-a53b-843176b1656c
Update twext for #832.


git-svn-id: https://svn.calendarserver.org/repository/calendarserver@12415 e27351fd-9f3e-4f54-a53b-843176b1656c