Missed imports for TEMPLATED_EMAIL_PLAIN_FILTER path

I'm sorry, forgot add some imports, because edited code right in github editor :-)

Added missed imports.