Fixed a clear typo.

Only call writer once when the result of a WSGI application is a string.