Fixed NullPtrException on channelRegistered in ApnsConnection

Fixed possible NullPointerException on race condition, when channel is registered before field is set.
Not however, that using non-final field that is not even initialized in constructor is anti-pattern. There should be other object used for synchronize. If you wish to make this more correct fix, let me know. This fixes the problem thou.