NSURLSession completionHandler is not guaranteed to be called on the main queue. Fixes #22.