Bugfix in the query for latest released items. Refs #18569.