Is it possible to make objects that are invisible in the viewport remain in the dopesheet?
The little ghost button at the bottom of the dope sheet enables/disables showing invisible objects.