Dont return true on isPlainObject when passing a function

I was having problems trying to set events for highlight charts and this was the root of the problem.