Do not continue execution if argument expansion fails. Fixes #1488