terminate unfolding when unspool returns undefined or null