[READY] Don't addEventListener for upEdit if on another user's profile

When visiting another user's profile, the Edit Profile button is not present.
This was causing a JS error because the `addEventListener` could not find the button.
Now it only adds the event listener if the button is present.