core/parser: fix loop on broken values matching the prefix of a good value in parse_option_tag_body()

- reported by Savolainen Dmitri, FS#396