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.