Fix user traffic checking bug when record is empty