Add nil comparison for Xcode6 beta5 change.