added check for availability of setNeedsStatusBarAppearanceUpdate