MB-199 # Added handling for undefined calls to fix crashing with pgproc.