check if query string exists before unset 'code' and 'state' parameters