Fix the false positive for redundant nil check