Fix EZP-21471: JS error on versionview of unpublished object.