Check for out of sync data bytes

Check if the first byte on board.currentBuffer corresponds to a valid
command.  If not clear the buffer to prevent errors due to out of sync
data (this might happens on small boards - such as Raspberry Pi - when
cpu intensive processes ar run)