[FIX] Validate theme + master.tpl folder if doesn't exist fallback to default template

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