Change TypeExtension.IdIsEmpty to use Expression