Unset active before calling DispatchUiCommand.onResult.