Fix empty line reading corner case