fix gcm staging endpoint check