fixed  code style compliance  regarding spaces

This is a fix for  https://github.com/facebook/tornado/issues/948,  
it adds a check  to ensure that the  ```RequestHandler.write``` method raises a
TypeError  if  its called with ```None``` as an argument.