Fix formatting on instance/edits page

[note this pull is on top of #801 so e9648b6 can be ignored]

  * There were several cases where ids were being localized and the thousands separator character was causing links to break.
  * The conditional around the current value was incorrectly checking for the existence of the previous value.

Fixes #800