PROV-373 Fix incorrect cast that could lead to disappearing list items in the list hierarchy browser