Fix text detection for the nil case.