Fix NullPointerException when responseString is null

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