Fixed NullPointerException when used in Android

When working in Android, accessing the content returned by the HttpResponse twice, raised an Exception. Now this API works perfectly in Android, too.