I can't reproduce it on XWiki 17.4.0, Groovy marks its content as required, you cannot insert macro without providing the content. It can be seen in code.
I guess you only tested on WYSIWYG editor and not on WIKI editor, the link you provided is about CKEditor. Which is not the issue here.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.