profile: Fix glitch when exiting custom profile display UI.
profile: Fix glitch when exiting custom profile display UI.

Tweaked by tabbott to add a brief comment explaining the issue.

Fixes: #9702.

rht/zulip,tommyip/zulip,timabbott/zulip,hackerkid/zulip,synicalsyntax/zulip,andersk/zulip,eeshangarg/zulip,rht/zulip,rishig/zulip,kou/zulip,shubhamdhama/zulip,punchagan/zulip,dhcrzf/zulip,jackrzhang/zulip,tommyip/zulip,punchagan/zulip,rishig/zulip,brainwane/zulip,tommyip/zulip,tommyip/zulip,hackerkid/zulip,synicalsyntax/zulip,brainwane/zulip,zulip/zulip,hackerkid/zulip,kou/zulip,brainwane/zulip,kou/zulip,showell/zulip,dhcrzf/zulip,jackrzhang/zulip,synicalsyntax/zulip,shubhamdhama/zulip,rht/zulip,kou/zulip,zulip/zulip,synicalsyntax/zulip,rishig/zulip,rht/zulip,hackerkid/zulip,jackrzhang/zulip,andersk/zulip,tommyip/zulip,timabbott/zulip,synicalsyntax/zulip,showell/zulip,andersk/zulip,timabbott/zulip,eeshangarg/zulip,jackrzhang/zulip,zulip/zulip,showell/zulip,rishig/zulip,eeshangarg/zulip,rht/zulip,timabbott/zulip,eeshangarg/zulip,jackrzhang/zulip,dhcrzf/zulip,shubhamdhama/zulip,synicalsyntax/zulip,kou/zulip,andersk/zulip,showell/zulip,rishig/zulip,brainwane/zulip,jackrzhang/zulip,showell/zulip,brainwane/zulip,synicalsyntax/zulip,hackerkid/zulip,showell/zulip,kou/zulip,shubhamdhama/zulip,tommyip/zulip,punchagan/zulip,rht/zulip,timabbott/zulip,andersk/zulip,showell/zulip,zulip/zulip,jackrzhang/zulip,punchagan/zulip,timabbott/zulip,timabbott/zulip,dhcrzf/zulip,punchagan/zulip,rht/zulip,hackerkid/zulip,andersk/zulip,shubhamdhama/zulip,zulip/zulip,andersk/zulip,rishig/zulip,brainwane/zulip,brainwane/zulip,punchagan/zulip,zulip/zulip,tommyip/zulip,hackerkid/zulip,eeshangarg/zulip,shubhamdhama/zulip,eeshangarg/zulip,rishig/zulip,kou/zulip,eeshangarg/zulip,shubhamdhama/zulip,dhcrzf/zulip,zulip/zulip,dhcrzf/zulip,punchagan/zulip,dhcrzf/zulip