Slightly modified how a custom formatItemTimeFunc is invoked.

Whenever a formatItemTimeFunc was being set, it was not being properly executed due to the following error "Uncaught TypeError: Property 'formatItemTimeFunc' of object [object Object] is not a function". Added type check and changing invocation method seems to solve the issue.