fix for using getFirst with query functions
This should solve issues when using getFirstObject in combination with a query function in the detector container. In my case I had a query function to only use MPAs and not SSAs. Since SSAs have lower chip IDs, the getFirstObject was still returning an SSA. Now with this type of query function, it will correctly return the first enabled MPA.