map is undefined

Hello!
When you dynamically load a frame with MapQuery and
MapQueryWidget, it produces the error:
Script Error "map is undefined" in Render Async! Processing Full Submit.
See attached project.
When you dynamically load a frame with MapQuery and
MapQueryWidget, it produces the error:
Script Error "map is undefined" in Render Async! Processing Full Submit.
See attached project.