fix two more ternary conditionals in functions.php

Aaron points the last change to these functions made them reinvent "?:"
with "if". Fix.

* formatRealmName()
* strerror8021Q()