form.instance is constructed in is_valid(), and is_valid() must be called before this code can be reached - so this cleanup seems valid.