Fixed issue with intercepting a function that is not created with new.