Checked that the number of data available if not 0 before reading to avoid an exception.
assigned to @shernand
merged
mentioned in commit 02889aeb