Make executing and empty batch not cause an error