Thomas stays in charge of Giro after brutal Queen stage