Fixed compilation error on Xcode 6 and iOS SDK 8.0

Full error: "Expression which evaluates to zero treated as a null pointer constant of type". There were three instances of this, where a value of `NO` was returned where a pointer was expected. I changed those to return `nil` instead.