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