When he sees the Lord of the Flies, he doesn't have a shirt. When he walks up to it, he doesn't have a shirt either. He does wear a shirt when he sees the other boys cutting the pig's head off (before obviously). But he obviously took his shirt off. So this isn't really a slip-up.