use TextUtils.isEmpty when checking null/empty value for device_id, and removed unused parameter in unregisterPushNotificationsToken.