Fix for null ref exception for Contains on null