fix inconsistent write/deref in action config processing

Thanks to Tomas Heinrich for alerting us.
Merge branch 'v7-stable' of git+ssh://git.adiscon.com/git/rsyslog into v7-stable
Merge branch 'v7-stable' into v8-stable