Fixed edit url to use instance object and NOT mongo query
Merge pull request #931 from modilabs/928_edit_does_not_exist

Fixed edit url to use instance object and NOT mongo query - closes #928