Fixes #1335: findLayoutFile() should respect View::defaultExtension.