Fix handling nonexistent welcome message templates

Since `wiki_template()` returns `None` if the template page doesn't exist, trying to chain `format()` onto it is causing a crash if either of the templates don't exist. This moves the formatting to after the point where we've checked that they exist to prevent this.

:eyeglasses: @umbrae