[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.
5 jobs for 26_fix_end_index_handling_in_write in 14 minutes and 26 seconds (queued for 1 second)