[2.3] - Make sure we load default layout.js for custom themes without custom layout.js

See #11228