Allow setting only default layout without specifying template in email config.

Closes #3336
Merge pull request #3373 from ADmad/2.5-cakeemail

Allow setting only default layout without specifying template in email c...