If for some reason all the message we are trying to sync in a chunk are deleted from another client it is possible that the input to the build stage will be empty. This case is now handled correctly.