Fix for GCM device not registered error

Fix for GCM device not registered error #36