updated JSBadgeViewIsUIKitFlatMode to work in iOS 7.1