[SPARK-3292][streaming]Fix:Shuffle Tasks run incessantly even though there's no inputs

with this PR: no job is commited when there's no imputs.