Errors in the compare versions page

Fixes #1616
Other picks from #1011