Make sure we load default layout.js for custom themes without custom layout.js
Check for "theme_path/js/layout.js" before trying to load it

* origin/pr/11230:
  Make sure we load default layout.js for custom themes without custom layout.js