Fix incorrect variable check when editing address
Allow endpoint use on the front page.

Fixes #5609 cc @claudiosmweb