When PotentialNamespace is used detector is empty and DetectorFromDatabaseModel() should return nil instead of empty object.