closed #4054: Removing child from TMXLayer may cause crash and adding relevant test case.