Flex scanners return EOF, so check for that now instead of nil