Fix for StackOverflowException when workflow does not define a file as input.