patch for https://bitbucket.org/jespern/django-piston/issue/221/attributeerror-httpresponseservererror