fix 1689: KeyValueParser should throw without key or value