Reducing duplication and better utilizing the WP built-in `locate_template()`

Re recommendations from @QWp6t in roots/roots#1042
Merge pull request #1042 from al-the-x/better-partial-includes

Trigger an error when a required include fails to be included...