only append query string if it exists (avoid getting "?null" on all forwarded requests)