Check if NSURLSessionTask is defined