They never actually showed Scott dying. Sure, they insinuated he did, but there was no body. I think they did that because:

A. He was only signed for three movies and they didn't know if there'd be a fourth.

B. He was unavailable for the movie due to Superman.

C. They were trying to wrap up most of the characters stories in case there was no fourth.