NPE prevented remote access

As in OSS nothing appends query string, and StringBuilder
constructor invoked with null NPEs