The template() function in lib/web/mage/utils/template.js returns «undefined» values as a string, not as the «undefined» global variable nor «null» literal, which lead to mistakes in the core code's logical expressions

An example of mistake: The beforeSave() method in app/code/Magento/Ui/view/base/web/js/form/client.js tries to make AJAX requests for undefined URLs