Returns a mutable reference to the last element of the vector.
If the vector is empty, the behavior is undefined.