Panel: fixed bug introduced in recent commit that caused blank title in optimized build, #1041