Fix #1540

Removed redundant assignments so that the Contact Details box in profile
gets hidden when needed.
https://github.com/mybb/mybb/issues/1540