[sr-dev] git:4.1: core: fix condition on script callback number done inside EXTRA_DEBUG