[bug fix] TDIS-5643 - modify the condition about callback checking