Let adaptive-stack work with nan-blanked images