Log warning if the primary template throws error and the default template is used instead

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #1143
| License       | MIT
Yes, [it is](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide-meta.md). This was fixed by [PSR fixer](https://github.com/fabpot/PHP-CS-Fixer) automatically. I was suprised, too, when it starts to fix the anonymous functions like this :)