EBrook: avoids access violation when instance or class passed via param is null.