Check on the current application state, to prevent endless animation in the background

Sometimes labels will continue to scroll in the background
With "window" and superview, but CAAnimations will finish immediately, which will consume 100% CPU, while application is in background.