Added an explicit check for null configurations in the ApnsConnection constructor.