Avoid decrementing iterator past the beginning.