medium: ui_history: Fix crash using empty object set