Modified check in ListActiveElementsCommand to exclude non-null but empty fields. Added query field, modified
displayName of active query element to show the query instead of the data key.