fix #273 - NullReferenceException when typing a call to `FirstOrDefault()`