Fix a bug pointed out by @nden when slicing a compound model that contains models that have no parameters (such as Mapping or SIP or a few of the projection models)