Modified query string function to drop ? when empty