QuickDoc: getActiveDocComponent() utility extracted