added sanity check around the UI_template instance so that it ccan fail gracefully when not there.
audit fix
Merge pull request #2 from treyeckels/feature/audit-fix

added sanity check around the UI_template instance so that it ccan fail ...