builder: fix processing of invalid substitusion syntax Upstream-commit: b2719e35f58c5420ae3dd6ab8e583fba8c6cf6d9 Component: engine