model: fix bug in score calculation when tevent is None.