Dynamic Component Attributes dialog error

Similar error reported in this thread, which I posted a quick fix: