add check to prevent LuiShenReader to throw IndexOutOfBoundsException when reading file ending with empty lines