Merge pull request #75 from aalness/andy_missing_inputs_fix

Previous outputs can be missing for side chains too