[Issue #2119] Adding check for AF_APP_EXTENSIONS macro to conditionally compile background method that makes unavailable API (+[UIApplication sharedApplication] call in app extensions