Fixing run time exception: reference into empty vector  

Replacing it with more predictable behavior.
Indeed, that could be useful to add.