Fix state leaks in actionmailer/test/base_test.rb.
Merge pull request #14964 from zuhao/refactor_actionmailer_tests

WIP: Make ActionMailer tests order-independent.