Fixing run time exception: reference into empty vector  

Replacing it with more predictable behavior.
One of these 'DA' moments. Should have thought that if there is a begin_ptr, there should be end_ptr as well.