For most flow functions, Composer behaves as though all output arguments are available in all outputs, e.g. success payload (such as taken photo) is available in the bottommost error output, and the error message is available in the success output.
An user can utilize these values in flow logic without any warning from Composer, with the end result that they just evaluate to
undefined
.
Fix so that the output arguments are only available in the outputs that really output them.