Plugins that provide both detail and non-detail instances led to a mismatch between the instance list to render and the plugin instance list, causing tab captions to be wrongly assigned. Fixes: #5387 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit e9039ae8f552eb92166da279aa9a4d5b1daa99b5)