Function to call when the advanced Object Selector is closed. Only available during AdvancedObjectSelectorEventType.OpenAndSearch.
This function takes two parameters: the object that was selected, or null if nothing was selected, and a boolean indicating if the selection was canceled or not.