Portal.imageUrl returns a ghost URL when the id is undefined

    var backgroundImage = execute('portal.imageUrl', {
        id: xeonConfig.bannerBackground,
        format: 'jpg'

In the above code, there are times when the value of “xeonConfig.bannerBackground” is undefined. When that happens, the result should be null. But it instead returns the URL for a ghost content.

The log returns:

Also, when I tried putting that URL into the browser, it gets and error saying the content is not an image.

This happens in version 5.2.0.