/Engine/Source/Editor/UnrealEd/Public/WorkflowOrientedApp/WorkflowTabManager.h
Cleans any invalid tabs, either moving them to a valid place in history or closing the tab altogether
void CleanInvalidTabs()