What looks like a humiliation for Vladimir Putin may actually be convenient for him