Fixing run time exception: reference into empty vector  

Replacing it with more predictable behavior.
Believe me, we're not really big on style :) We're somewhat insistent on not changing files to a meltingpot of different code styles, but apart from that, I always prefer pull requests that actually fix an issue (as you've been doing).