Fixed #4482 (add test for UB due to usage of NULL in variadic functions)