Hehe... one of those cases where an object name is needed. :)
Most FrameXML-defined functions don't like unnamed frames it seems, even if they let you pass the raw object rather than just the frame name.
That's not the only thing that they did wrong though. Those UI data files scare me.