Prevent a possible bug where nil would be treated as NSString instance