Referring to this post by @CJK:
While playing around with a new version of my macro and different save/restore methods, I now experienced again the “missing value” URLs. So, they are not gone with Mojave, unfortunately.
Often these are tabs that have a name of “Untitled”, but not always.
It seems these URL-less tabs can sometimes be created when saving not yet fully loaded tabs via AS, for example tabs that have been restored with Safari’s “Reopen Last Closed Window”. In this case it will have negative impact on the usefulness of the script, as tabs will be missing upon restore.
However, they also seem to appear “out of nowhere”, while all visible tabs are saved and restored correctly. In this case they are irrelevant for the script. According to the tab list created via AS, these phantom tabs seem to belong to some kind of invisible zombie windows. I couldn’t find out why or when these are created, but it sometimes happens even shortly after a Safari (or STP) restart without any restored sessions.