updated JSBadgeViewIsUIKitFlatMode to work in iOS 7.1

JSBadgeViewIsUIKitFlatMode is failing on iOS 7.1. Updated to use a suggestion from this thread https://gist.github.com/steipete/6526860