Fixed NullPointerException when handling a 204 response.

This patch fixes a crash when handling a HTTP 204 response.

Sorry for the whitespace mess. I wasn't sure about the indentation style to use.