[FIX] Validate theme + master.tpl

[FIX] Validate theme + master.tpl folder if doesn't exist fallback to default template

@xisi Thanks for helping with logic

Fixes #1552