fixed findOrInit return error value when id is empty string