Rangers lose no-hitter in ninth, win 4-0