Fix the circular buffer 'get' beyond the end of the buffer

It now returns nil as specified instead of wrapping around to the
beginning of the buffer.