Modified ListActiveElementsCommand to check for the more specific elements first, fixed
display of simple active elements with hide/show conditions only.