Flush $rows array between render() calls

@silawrenc, SIMON CAN YOU LOOK AT THIS PLEASE I WANT TO RELEASE THE FIX NOW!1
APOLOGIES FOR THE DIFF THIS IS THE ONLY ACTUAL CHANGE