Fix endless loop in entity cache when opening "Inspect Active Session"