Fix formatting on the instance edits page

There were several cases where ids were being localized and the
thousands separator character was causing links to break.
Fix typo in conditional

The conditional around the current value was incorectly checking for
the existence of the previous value.
Merge pull request #802 from jwalgran/topic/fix-edits-formatting

Fix formatting on instance/edits page