Consider an unexpanded item in depends_on not met

Close #4861