Correct detection of group end in map file when testing symbol presence