Make sure we don't dereference the .end() of the container.