Workaround to stabilize push js test for unregister/register

TODO: getDeviceId should NOT call the callback function until the push
client finishes registering.  This results in a race condition where
the old device id is returned and push can be sent too early.