fix cancel/came_from link in badge edit form

This is a fixup to #831. The `came_from` fallback for badge edit forms was missing.