Fix accessing of twisted content attribute.

Fix for issue #334.