Fix a possible crash when releasing a CF obj

I think this crash just now only occurred because of a caches problem, but if you see that when `fileURL ==  nil` then `urlRef == NULL`. We all know that trying to `CFRelease(NULL)` is bad.