Note that the error means that the RESTScriptService #url script service was called with a null reference. I assume it's because we don't have a context document in those use cases, but it's strange to me that a criterion like this could change depending if the instance is an upgrade or a fresh one.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.