Fix attribute error in TwistedWebResource

Proposed fix for issue #294.