Access data() instead of first element in empty vector