Add convenience function for normalizing a vector but defaulting to zero if length is zero