Fix createInputSplits Bugs in BinaryInputFormat.

- avoid empty input splits creation on one file
- avoid index out of bounds exception on hdfs using a "valid" range