Fix crash for empty ensure