fix CFRelease on NULL