Ensure that all logmessages are read off the inputChan

This change prevents inconsistent Loggregator --recent messages by ensuring that the inputChan is empty before returning.