Debug.Assert.   Also look at other places that check for id null or empty.  It is an unexpected condition.  Next best thing is to throw ArgNullException.