#5952 - fix infinite loop when disabling > 50 annotations or metadata
Refs #5952 - Added test
Merge pull request #6184 from Srokap/pr/6121

#5952 - fix infinite loop when disabling > 50 annotations or metadata
Refs #6172 - Fixed one more trac mention