Fixes: [41029] Protect CloseThemeData() from invalid input