enable CSV Reader to ignore invalid lines like an empty line at the end and comments - FLINK-1208

Corresponding to issue FLINK-1208:
enable CSV Reader to ignore invalid lines like an empty line at the end, multiple header lines or comments without throwing an exception
check that ``this.currBuffer[this.currOffset +i]`` does not cause IndexOutOfBoundsException.