Fixed a bug when a faulty device token for push notifications has been generated