Arduino 1.5 event receive bug fix

For some reason Arduino 1.5 causes the first availableEvent
payload/event message read to be 0 bytes so I had to put in a do loop
and now it works.