Fix parsing empty scalars without a trailing newline. (Fixes #5)