Workaround for that odd crash involving vector iterators and
callbacks for CEGUI buttons getting clicked.