Make TemplateAliasProcessor work with top-level partials

For some reason the `template_name` method assumes that there is a slash in each partial's path, while it is perfectly valid to have global partials that are not contained in a sub directory. For those the expression won't match and the method would fail due to a call to `nil.[]`.