fix(text panel): fix for text panel in optimized builds, introduced in recent commit due to plugin api changes