Include widget_template to list of possible templates only when not None

If `widget_template` is not set, then it defaults to `''` and if you have a `templates` directory in the root of your project, then you'll get a 500 error about `.../templates/` being a directory and not a file.

This patch fixes this behavior by adding `widget_template` in the list of possible templates to render, only when the attribute exists.