Fix #1540

Removed redundant assignments so that the Contact Details box in profile
gets hidden when needed.
https://github.com/mybb/mybb/issues/1540
$contact[$field] won't be called anywhere if `!empty($contact_fields)` is false below..