Fix NullReferenceException when inserting space after 'in' modifier