messaging/gcm: fix empty reg_id string issue