fix(globalFunctions): look for controller function on window if not found

Normal controller logic allows the function for a controller to be found on the window.
This should not be prevented by AngularHintController. If a controller function
is not found in the registered list, look for it on the window.

#11