[execution][messagehandlers] Fix write end_data_index handling in LoopMessageHandler
The None value is not properly handled and ends up triggering a warning while it is a valid value for end_data_index.
This patch fixes this.
The None value is not properly handled and ends up triggering a warning while it is a valid value for end_data_index.
This patch fixes this.