bugfix: mmexternal segfault due to invalid free in non-json input mode

closes: https://github.com/rsyslog/rsyslog/issues/70