Reinitializing list's begin iterator after few elements were erased from the head
Merge pull request #4969

cda45b5 Reinitializing list's begin iterator after few elements were erased from the head (ENikS)