Fix undefined=undefined in query strings