omelasticsearch: properly handle errorfile in non-bulk mode

see also: https://github.com/rsyslog/rsyslog/issues/104