Tag format: Property with empty value at the document now OK and tests added for this case.

If the document ended without a newline at the end and a property had no
value, it would result in the document not having that property at all;
now it results in having that property with value "".

Signed-off-by: Vlad Velici <vlad.velici@gmail.com>