Editing modes: fixed some crashes related to undoing/redoing while objects with associations were highlighted