safeguard against NaN & null-value tasks