Handle NullReferenceException properly on accessing chains of potentially null properties