Fix assert_template for files.

The test was not failing for `assert_template file: nil` when a file
has been rendered.
Merge pull request #16027 from tgxworld/template_assertions

Fixes to ActionController::TemplateAssertions