Fixed FindFunction() to search namespaces.
Checking for null like FindClass().