Fix crash when normalizing zero vectors