frontend: fix the compare link when the current version is missing