Fix NPE in VersionedName toString() when version is null