Fix stream closing when sending file with `ActionController::Live` included.

Fixes #12381