Fix #1540

Removed redundant assignments so that the Contact Details box in profile
gets hidden when needed.
https://github.com/mybb/mybb/issues/1540
IIRC this was done so that not undefined variables would be called in templates. PHP performance reasons.