fix the bug that crushed when imei is not in db