It is sometimes hard to tell via the generator logs which JSX script failed. The first commit adds an explicit log warning
If generator-assets polls for document info when no documents are open, the JSX script throws. This is already handled gracefully, but it adds meaningless clutter in the logs. This is even worse now with the logging added in this PR, so the second commit changes the JSX to return "null" in this particular case.