Deactivating an object still allowed querying its records in search. <img width="1512" height="856" alt="image" src="https://github.com/user-attachments/assets/0a1ba36f-1ecf-44d3-8e97-294bb4e81e4f" /> <br /> <br /> This PR introduces a minor improvement to not query records of deactivated objects. <img width="1512" height="856" alt="image" src="https://github.com/user-attachments/assets/f5fd1377-2fda-4653-b3cc-30a59d52e4cf" />