Fixed #4896 (FP Uninitialized variable on template function)