Improve compatibility of tests and demo app with iOS <8
Fix potential crasher in BTClient for nil failureBlock