[sr-dev] git:master:f4b80318: cdp: proper check not to go over allocated size of apps ids