Fix issue with tooltipFormatter.

Fixes bug "creating default object from empty value" thanks to @hellsend.