ticker: fixed a cache issue

we didn't set the $data value in the beginning,
but we'll use it in the "else" statement,
so we'll get 0 when server didn't respond data to us.

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>