Move precondition check.

No sense in having null check after you call toString on the potential null instance.