Account for actions themselves being selected in the outliner as well as ID-types that don't have any animation data.