Clear the fragment_name field when resizing.

This reinstates the behaviour from before the change in
a1bf49c1ce61e4df1b788960826b45c6469ad976.