Improve the error message for extends in stack deploy. Upstream-commit: acaf3cf870ff6a88df5c480682046e4106e31da5 Component: engine