Fix NullPointerException when responseString is null

Also, should be slightly faster, because we reuse the internal string.