Check for null in HTTPRequestAdapter.

This should solve the exception detailed in #57