Check if the command exists before dereference Upstream-commit: 6d6ec5e0051ad081be3d71e20b39a25c711b4bc3 Component: engine