SERVER-11501 SERVER-2212 Fix deref. of invalidated iterator