Resource problem with obfuscation enabled

When I enable obfuscation and I have a button with a local resource (image on the button), I get:

To reproduce:

  1. Create new Winform project
  2. Add a button to the form, and add a Local resource to the image property
  3. Add the line [assembly: Obfuscate(PublicTypes := true)] to assemblyinfo.pas
  4. Start the project

Addition info: It also happens without PublicTypes:=true

Thanks, logged as bugs://82693