Un-inline if statement

The single line was long enough that it rendered on two lines,
causing the example to look like syntactically invalid code.
Merge pull request #18243 from JoshCheek/mailer_guide_code_example

Guide for Action Mailer Basics: Un-inline if statement