Fix count of unsent notifications in apn