FIX: Parenthesis in content tries to apply func

When content have parenthesis but not a function, content test patterns
tried to return a function method for tooltip. Reported issue fixed.

Also, in the function method, now it checks if function is defined in
window before calling