Fix a bug in ByteOrderMarkScanner.
Which would trigger an Exception while reading an empty file.

Signed-off-by: 核心力量 <kernelforce@gmail.com>