Bugfix in configuration checking in register_plugin.

We're looking for values of render_template that are non-existant templates,
but are also catching when they just include (or extend) non-existant templates.
Merge pull request #3337 from addgene/mw/register-plugin-error-fix

Bugfix in configuration checking in register_plugin.